package com.myapp.war.beans;

import java.util.HashMap;
import java.util.Map;

public class WarBean {

	// 用戶id
	private long uid = 0;

	// 选择的关卡id
	private WarMapBean map = null;

	// 地图上设置的塔位置和id,X_Y是key
	private Map<String, WarTowerBean> towers = null;

	// 地图上设置的英雄bean和坐标轴，X_Y是key
	private Map<String, WarHeroBean> heroes = null;

	// 消灭的怪物列表，Map<Integer怪物id, 怪物个数>
	private Map<Integer, Integer> monsters = null;

	// 生命值和最后变化情况
	private WarLifebloodBean lifebloodBean = null;

	// 魔力值和最后变化情况
	private WarMagicBean magicBean = null;

	// 最后一次值发生变化的时间
	private long lastUpdateTime = 0;

	public WarBean(long uid) {
		this.uid = uid;
		towers = new HashMap<String, WarTowerBean>();
		heroes = new HashMap<String, WarHeroBean>();
		monsters = new HashMap<Integer, Integer>();
	}

	public WarMapBean getMap() {
		return map;
	}

	public void setMap(WarMapBean map) {
		this.map = map;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public Map<String, WarTowerBean> getTowers() {
		return towers;
	}

	public void setTowers(Map<String, WarTowerBean> towers) {
		this.towers = towers;
	}

	public Map<String, WarHeroBean> getHeroes() {
		return heroes;
	}

	public void setHeroes(Map<String, WarHeroBean> heroes) {
		this.heroes = heroes;
	}

	public Map<Integer, Integer> getMonsters() {
		return monsters;
	}

	public void setMonsters(Map<Integer, Integer> monsters) {
		this.monsters = monsters;
	}

	public WarLifebloodBean getLifebloodBean() {
		return lifebloodBean;
	}

	public void setLifebloodBean(WarLifebloodBean lifebloodBean) {
		this.lifebloodBean = lifebloodBean;
	}

	public WarMagicBean getMagicBean() {
		return magicBean;
	}

	public void setMagicBean(WarMagicBean magicBean) {
		this.magicBean = magicBean;
	}

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}
